/* === S T A R T =========================================================== */
/* === H E A D E R S ======================================================= */
#ifdef USING_PCH
#	include "pch.h"
#else
#ifdef HAVE_CONFIG_H
#	include <config.h>
#endif
#include "dock_skeleton.h"
#include <gtkmm/frame.h>
#include <gtkmm/table.h>
#include <gtkmm/label.h>
#include <gtkmm/messagedialog.h>
#include <synfig/general.h>
#include <synfigapp/canvasinterface.h>
#include <synfigapp/value_desc.h>
#include <synfigapp/main.h>
#include "../app.h"
#include "../general.h"
#endif
/* === U S I N G =========================================================== */
using namespace std;
using namespace etl;
using namespace synfig;
using namespace studio;
/* === M E T H O D S ======================================================= */
Dock_SkeletonEdit::Dock_SkeletonEdit():
	Dockable("skeleton_edit",_("Skeleton"), Gtk::StockID("gtk-execute")),
	table(2,1,false)
{
Glib::ustring ui_info =
       "<ui>"
       "	<toolbar action='toolbar-skeleton'>"	
       "	</toolbar>"
       "</ui>"	;
       App::ui_manager()->add_ui_from_string(ui_info);
       set_toolbar(*dynamic_cast<Gtk::Toolbar*>(App::ui_manager()->get_widget("/toolbar-skeleton")));
       add(table);

       add_button( Gtk::StockID("gtk-add"), _("Add"))->signal_clicked().connect( sigc::mem_fun( *this, &Dock_SkeletonEdit::on_add_pressed ));

       add_button( Gtk::StockID("gtk-copy"), _("Copy"))->signal_clicked().connect( sigc::mem_fun( *this, &Dock_SkeletonEdit::on_add_pressed ));

       table.set_homogeneous(true);
       show_all_children();
}

Dock_SkeletonEdit::~Dock_SkeletonEdit()
{
}

void Dock_SkeletonEdit::on_add_pressed()
{
//	Gtk::MessageDialog msgbox( (Gtk::Window &)(*this), Glib::ustring(_("Versione delle 13:44...")) );
//	msgbox.run();
	Gtk::Widget *puls = new Gtk::Button(_("Button"));
//	puls->set_size_request(50, 20);
        table.add( *puls );
}
